home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
rbbs_pc
/
173_bas.arc
/
MAKECNFG.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-02-10
|
2KB
|
47 lines
ECHO OFF
IF NOT %1. == ?. GOTO START
ECHO RBBS-PC CONFIG COMPILE UTILITY
ECHO This batch file will help you quickly compile CONFIG, should you
ECHO wish to make modifications to the source. The syntax is:
ECHO
ECHO %0 [parms]
ECHO
ECHO If you do not specify any parameters, %0 will compile BOTH CONFIG
ECHO source modules, then link them into CONFIG.EXE. If you specify one
ECHO or more parameters, %0 will compile only the modules you specify,
ECHO and will then link them. To specify modules, use the following
ECHO number(s) separated by a space:
ECHO
ECHO MODULE NUMBER
ECHO CONFIG.BAS 0
ECHO CNFG-SUB.BAS 1
ECHO
ECHO NOTE: Results of each compile will be saved in the file $$CNFG.TXT.
ECHO
ECHO THIS FILE IS CONFIGURED FOR QB 3.0 - SEE COMMANDS FOR QB 4.5 CHANGES!
GOTO EXIT
:START
IF EXIST $$CNFG.TXT DEL $$CNFG.TXT
if %1. == 0. GOTO CNFGCOMP
if %1. == 1. GOTO CSUBCOMP
ECHO COMPILING ALL MODULES...
:CNFGCOMP
ECHO Erors while compiling CONFIG.BAS include: >> $$CNFG.TXT
QB CONFIG.BAS /C:2048 /O/E/S; >> $$CNFG.TXT
REM FOR QB4.5, USE: BC CONFIG.BAS /C:2048 /O/E/S/MBF; >> $$CNFG.TXT
IF %1. == 0. GOTO LOOP
:CSUBCOMP
ECHO Errors while compiling CNFG-SUB.BAS include: >> $$CNFG.TXT
QB CNFG-SUB.BAS /O/E; >> $$CNFG.TXT
REM FOR QB4.5, USE: BC CNFG-SUB.BAS /O/E/MBF; >> $$CNFG.TXT
IF %1. == 1. GOTO LOOP
:LOOP
IF %2. == . GOTO LINKIT
SHIFT
GOTO START
:LINKIT
LINK CONFIG CNFG-SUB RBBSUTIL FOSSCOMM GWCOM,,,BCOM30;
REM FOR QB4.5, USE: LINK CONFIG CNFG-SUB RBBSUTIL FOSSCOMM,,,BCOM45;
TYPE $$CNFG.TXT
:EXIT